//
//  UserInfoModel.m
//  Builder
//
//  Created by JCK on 2017/12/1.
//  Copyright © 2017年 JCK. All rights reserved.
//

#import "UserInfoModel.h"

static UserInfoModel *_instance=nil;
static dispatch_once_t oneToken;
@implementation UserInfoModel
+(instancetype) shareInstance
{
//    static dispatch_once_t onceToken ;
    dispatch_once(&oneToken, ^{
        _instance = [[super allocWithZone:NULL] init] ;
    }) ;
    return _instance ;
}

+(id) allocWithZone:(struct _NSZone *)zone
{
    return [UserInfoModel shareInstance] ;
}

-(id) copyWithZone:(struct _NSZone *)zone
{
    return [UserInfoModel shareInstance] ;
}

+ (void)tearDown
{
    _instance=nil;
    oneToken = 0l;
}
@end
